package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SnmpSensorsubjectMapper;
import com.ruoyi.system.domain.SnmpSensorsubject;
import com.ruoyi.system.service.ISnmpSensorsubjectService;

/**
 * 传感器主题信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-08-26
 */
@Service
public class SnmpSensorsubjectServiceImpl implements ISnmpSensorsubjectService 
{
    @Autowired
    private SnmpSensorsubjectMapper snmpSensorsubjectMapper;

    /**
     * 查询传感器主题信息
     * 
     * @param id 传感器主题信息主键
     * @return 传感器主题信息
     */
    @Override
    public SnmpSensorsubject selectSnmpSensorsubjectById(Long id)
    {
        return snmpSensorsubjectMapper.selectSnmpSensorsubjectById(id);
    }

    /**
     * 查询传感器主题信息列表
     * 
     * @param snmpSensorsubject 传感器主题信息
     * @return 传感器主题信息
     */
    @Override
    public List<SnmpSensorsubject> selectSnmpSensorsubjectList(SnmpSensorsubject snmpSensorsubject)
    {
        return snmpSensorsubjectMapper.selectSnmpSensorsubjectList(snmpSensorsubject);
    }

    /**
     * 新增传感器主题信息
     * 
     * @param snmpSensorsubject 传感器主题信息
     * @return 结果
     */
    @Override
    public int insertSnmpSensorsubject(SnmpSensorsubject snmpSensorsubject)
    {
        return snmpSensorsubjectMapper.insertSnmpSensorsubject(snmpSensorsubject);
    }

    /**
     * 修改传感器主题信息
     * 
     * @param snmpSensorsubject 传感器主题信息
     * @return 结果
     */
    @Override
    public int updateSnmpSensorsubject(SnmpSensorsubject snmpSensorsubject)
    {
        return snmpSensorsubjectMapper.updateSnmpSensorsubject(snmpSensorsubject);
    }

    /**
     * 批量删除传感器主题信息
     * 
     * @param ids 需要删除的传感器主题信息主键
     * @return 结果
     */
    @Override
    public int deleteSnmpSensorsubjectByIds(Long[] ids)
    {
        return snmpSensorsubjectMapper.deleteSnmpSensorsubjectByIds(ids);
    }

    /**
     * 删除传感器主题信息信息
     * 
     * @param id 传感器主题信息主键
     * @return 结果
     */
    @Override
    public int deleteSnmpSensorsubjectById(Long id)
    {
        return snmpSensorsubjectMapper.deleteSnmpSensorsubjectById(id);
    }
}
